package com.esd.db.dao;

import java.util.List;
import java.util.Map;

import com.esd.db.model.AlipayInfo;

public interface AlipayInfoMapper {

	int saveAlipayInfo(AlipayInfo newPayInfo);
	
	/**
	 * 查询列表数据有workerId
	 * @param map
	 * @return
	 */
	List<AlipayInfo> queryAlipayInfoListByWorkerIdandPayDate(Map<String, Object> map);
	
	/**
	 * 查询分页总数
	 * @param map
	 * @return
	 */
	int queryAlipayInfoTotleByWorkerIdandPayDate(Map<String, Object> map);
	
	/**
	 * 根据时间和工作者ID查询已经成功支付总数
	 * @param workerId
	 * @param beginDate
	 * @param endDate
	 * @param dateType
	 * @return
	 */
	double queryTotleSalaryByWorkerIdandPayDate(Map<String, Object> map);
   
	/**
	 * 查询列表数据 无workerId
	 * @param map
	 * @return
	 */
	List<AlipayInfo> queryAlipayInfoList(Map<String, Object> map);

	int queryAlipayInfoTotle(Map<String, Object> map);

	double queryAlipayTotleSalary(Map<String, Object> map);
}